/**
 * <p>功能: 所有数据请求地址<p>
 * @author wys 15909910367@163.com on 2019/3/23.
 * @version {$}
 */
Ext.define('Jason.store.ReqUrl', {
    alternateClassName: 'reqUrl', // 设置别名
    requires: ['Wys.utils.Config'],
    statics: {
        sys: {
            captchaCode:    cfg.requestUrl + "common/getCaptchaCode" + cfg.suffix,
            login: cfg.requestUrl + 'sys/login' + cfg.suffix,
            getAccountInfo : cfg.requestUrl + 'sys/accountInfo' + cfg.suffix,
            registerAccount: cfg.requestUrl + 'user/registerAccount' + cfg.suffix,
            refreshToken: cfg.requestUrl + 'sys/refreshToken' + cfg.suffix,
            logout: cfg.requestUrl + 'sys/logout' + cfg.suffix,
            changePassCode: cfg.requestUrl + 'sys/modifyPwd' + cfg.suffix,
            initMenu: cfg.requestUrl + 'sys/init' + cfg.suffix,
            uploadFile: cfg.requestUrl + 'fileUpload/multipicupload' + cfg.suffix,
            uploadFilePriview: cfg.requestUrl + 'fileUpload/file/v1/preivew' + cfg.suffix,
            uploadFileBatch: cfg.requestUrl + 'fileUpload/multipicuploadBatch' + cfg.suffix,
            deletepicupload: cfg.requestUrl + 'fileUpload/deletepicupload' + cfg.suffix,
            comboData: {    //通用下拉框数据加载请求 
                dict: cfg.requestUrl + 'dict/combobox' + cfg.suffix + "?type=",//查询字典下拉框数据
                dict2: cfg.requestUrl + 'dict/combobox' + cfg.suffix,
                tree: cfg.requestUrl + 'dict/zTree' + cfg.suffix,
                treeTwo: cfg.requestUrl + 'dict/zTree2' + cfg.suffix,
                searchRight: cfg.requestUrl + 'dict/selectAllByZydm' + cfg.suffix
            },
            dict: {
                findByPaging: cfg.requestUrl + 'dict/data' + cfg.suffix,
                findAll: cfg.requestUrl + 'dict/dataAll' + cfg.suffix,
                destroy: cfg.requestUrl + 'dict/delete' + cfg.suffix,
                removeParent: cfg.requestUrl + 'dict/deleteByType' + cfg.suffix,
                getOne: cfg.requestUrl + 'dict/find' + cfg.suffix,
                update: cfg.requestUrl + 'dict/edit' + cfg.suffix,
                create: cfg.requestUrl + 'dict/save' + cfg.suffix
            },
            attachments: {
                findByPaging: cfg.requestUrl + 'attach/data' + cfg.suffix,
                priview: cfg.requestUrl + 'fileUpload/file/v1/preivew' + cfg.suffix,
                create: cfg.requestUrl + '' + cfg.suffix,
                destroy: cfg.requestUrl + '' + cfg.suffix,
                update: cfg.requestUrl + '' + cfg.suffix
            },
            sources: {
                menus: {
                    findByTree: cfg.requestUrl + 'modular/modularTree' + cfg.suffix,
                    findByPaging: cfg.requestUrl + 'modular/data' + cfg.suffix,
                    findAll: cfg.requestUrl + 'modular/dataAll' + cfg.suffix,
                    destroy: cfg.requestUrl + 'modular/delete' + cfg.suffix,
                    modularTree: cfg.requestUrl + 'modular/modularTree' + cfg.suffix,
                    get: cfg.requestUrl + 'modular/data' + cfg.suffix,
                    update: cfg.requestUrl + 'modular/edit' + cfg.suffix,
                    create: cfg.requestUrl + 'modular/save' + cfg.suffix
                }
            },
            user: {
                findByPaging: cfg.requestUrl + 'user/data' + cfg.suffix,
                resetPassword: cfg.requestUrl + 'user/resetPassword' + cfg.suffix,
                changeState: cfg.requestUrl + 'user/changeState' + cfg.suffix,
                findAll: cfg.requestUrl + 'user/data' + cfg.suffix,
                destroy: cfg.requestUrl + 'user/delete' + cfg.suffix,
                get: cfg.requestUrl + 'user/data' + cfg.suffix,
                update: cfg.requestUrl + 'user/edit' + cfg.suffix,
                create: cfg.requestUrl + 'user/save' + cfg.suffix,
                userTree: cfg.requestUrl + 'dept/deptTree' + cfg.suffix,
                exp : cfg.requestUrl + 'user/exportToExcel' + cfg.suffix,
                queryByRole : cfg.requestUrl + 'user/selectUserListByRole' + cfg.suffix,
                userRole: {
                    findByPaging: cfg.requestUrl + 'userRole/data' + cfg.suffix,
                    selectUserByRoleCode: cfg.requestUrl + 'userRole/selectUserByRoleCode' + cfg.suffix,
                    findAll: cfg.requestUrl + 'userRole/dataAll' + cfg.suffix,
                    destroy: cfg.requestUrl + 'userRole/delete' + cfg.suffix,
                    get: cfg.requestUrl + 'userRole/data' + cfg.suffix,
                    update: cfg.requestUrl + 'userRole/edit' + cfg.suffix,
                    save: cfg.requestUrl + 'userRole/save' + cfg.suffix,
                    create: cfg.requestUrl + 'userRole/userRoleInsert' + cfg.suffix,
                    removeUserRole : cfg.requestUrl + 'userRole/deleteUserRoleByUserCodeAndRoleCode' + cfg.suffix
                }
            },
            right: {
                findByPaging: cfg.requestUrl + 'right/data' + cfg.suffix,
                findAll: cfg.requestUrl + 'right/dataAll' + cfg.suffix,
                destroy: cfg.requestUrl + 'right/delete' + cfg.suffix,
                get: cfg.requestUrl + 'right/data' + cfg.suffix,
                update: cfg.requestUrl + 'right/edit' + cfg.suffix,
                create: cfg.requestUrl + 'right/save' + cfg.suffix,
                rightTree: cfg.requestUrl + 'right/rightTree' + cfg.suffix,
                initRight: cfg.requestUrl + 'right/initMenuRight' + cfg.suffix
            },
            role: {
                findByPaging: cfg.requestUrl + 'role/data' + cfg.suffix,
                findAll: cfg.requestUrl + 'role/dataAll' + cfg.suffix,
                destroy: cfg.requestUrl + 'role/delete' + cfg.suffix,
                get: cfg.requestUrl + 'role/data' + cfg.suffix,
                update: cfg.requestUrl + 'role/edit' + cfg.suffix,
                create: cfg.requestUrl + 'role/save' + cfg.suffix,
                roleRight: {
                    findByPaging: cfg.requestUrl + 'roleRight/data' + cfg.suffix,
                    findAll: cfg.requestUrl + 'roleRight/dataAll' + cfg.suffix,
                    deleteById: cfg.requestUrl + 'roleRight/delete' + cfg.suffix,
                    get: cfg.requestUrl + 'roleRight/data' + cfg.suffix,
                    update: cfg.requestUrl + 'roleRight/edit' + cfg.suffix,
                    save: cfg.requestUrl + 'roleRight/save' + cfg.suffix
                },
                getModularByRole : cfg.requestUrl + 'right/authorizationModular' + cfg.suffix,
                rightRoleAuthorization : cfg.requestUrl + 'roleRight/rightRoleAuthorization' + cfg.suffix
            },
            organize: {
                leftMenu: cfg.requestUrl + 'dept/deptTree' + cfg.suffix,
                leftMenuV2: cfg.requestUrl + 'dept/v2/orgs' + cfg.suffix,
                findByPaging: cfg.requestUrl + 'dept/data' + cfg.suffix,
                create: cfg.requestUrl + 'dept/save' + cfg.suffix,
                destroy: cfg.requestUrl + 'dept/delete' + cfg.suffix,
                update: cfg.requestUrl + 'dept/edit' + cfg.suffix
            },
            logs: {
                findByPaging: cfg.requestUrl + 'logs/data' + cfg.suffix,
                findByPagingByError: cfg.requestUrl + 'logs/findErrorLogs' + cfg.suffix,
                findByPagingByLoginLogs: cfg.requestUrl + 'logs/findLoginLogs' + cfg.suffix,
                expErrorLogs: cfg.requestUrl + 'logs/exportToExcelByErrorLogs' + cfg.suffix,
                expLoginLogs: cfg.requestUrl + 'logs/exportToExcelByLoginLogs' + cfg.suffix,
                findByPagingByApiLog: cfg.requestUrl + 'logs/findApiLogs' + cfg.suffix,
                expApiLogs: cfg.requestUrl + 'logs/exportToExcelByLogAPI' + cfg.suffix,
                findAll: cfg.requestUrl + 'logs/data' + cfg.suffix
            },
            area:{
                findByPaging    :   cfg.requestUrl + 'area/data' + cfg.suffix,
                create          :   cfg.requestUrl + 'area/save' + cfg.suffix,
                update          :   cfg.requestUrl + 'area/update' + cfg.suffix,
                destroy         :   cfg.requestUrl + 'area/delete' + cfg.suffix,
                exp             :   cfg.requestUrl + 'area/exportToExcel' + cfg.suffix,
                findTreeDate    :   cfg.requestUrl + 'area/findTreeData' + cfg.suffix
            },
            FQA: {
                queryDetailsList: cfg.requestUrl + 'FQA/queryDetailsList' + cfg.suffix,
                queryCatalogTree: cfg.requestUrl + 'FQA/queryCatalogTree' + cfg.suffix,
                saveCatalog: cfg.requestUrl + 'FQA/saveCatalog' + cfg.suffix,
                updateCatalog: cfg.requestUrl + 'FQA/updateCatalog' + cfg.suffix,
                getCatalog: cfg.requestUrl + 'FQA/getCatalog' + cfg.suffix,
                deleteCatalogs: cfg.requestUrl + 'FQA/deleteCatalogs' + cfg.suffix,
                saveDetails: cfg.requestUrl + 'FQA/saveDetails' + cfg.suffix,
                updateDetails: cfg.requestUrl + 'FQA/updateDetails' + cfg.suffix,
                deleteDetails: cfg.requestUrl + 'FQA/deleteDetails' + cfg.suffix
            }
        },
        systemSetting: {
            dataSouce: {/*数据源管理*/
                findByPaging: cfg.requestUrl + 'dataSource/data' + cfg.suffix,
                create: cfg.requestUrl + 'dataSource/add' + cfg.suffix,
                destroy: cfg.requestUrl + 'dataSource/remove' + cfg.suffix,
                test : cfg.requestUrl + 'dataSource/testConnection' + cfg.suffix,
                update: cfg.requestUrl + 'dataSource/modify' + cfg.suffix,
                exp: cfg.requestUrl + 'dataSource/export' + cfg.suffix,
                get: cfg.requestUrl + 'dataSource/get' + cfg.suffix,
                getAllDataSouce: cfg.requestUrl + 'dataSource/data' + cfg.suffix,
                findByTree : cfg.requestUrl + 'dataSource/browse/leftTree' + cfg.suffix,
                getTableField: cfg.requestUrl + 'customActions/getTableFields' + cfg.suffix,
                getTableData: cfg.requestUrl + 'customActions/getTableData' + cfg.suffix,
                getDbTableAndView: cfg.requestUrl + 'customActions/getDataBaseTableAndView' + cfg.suffix,
                getDbAndViewNotTree: cfg.requestUrl + "customActions/getDataBaseTableAndViewNoTree" + cfg.suffix,
                getDbTableAndViewByTree: cfg.requestUrl + 'customActions/getDataBaseTableAndViewTree' + cfg.suffix,
                executeSQL: cfg.requestUrl + 'customActions/executeSQL' + cfg.suffix
            }
        }
    }
});